<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" isELIgnored="false" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt"  prefix="fmt"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>查询房型列表</title>
</head>
<body>
<form action="${pageContext.request.contextPath}/fangxing/deleteByIds" method="post">
    <table width="100%" border=1>
        <tr>
            <td><input type="submit" value="批量删除"/></td>
            <td> <a href="${pageContext.request.contextPath }/addfangxings.jsp">添加</a></td>
        </tr>
    </table>
    房型列表：
    <table width="100%" border=1>
        <tr>
            <td>FID</td>
            <td>房型名称</td>
            <td>房型图片</td>
            <td>房型描述</td>
            <td>房型价格</td>
            <td>房型数量</td>
            <td>房型id</td>
            <td>操作</td>
        </tr>
        <c:forEach items="${fangxinglists}" var="fangxing">
            <tr>
                <td>
                    <input type="checkbox" name="fid" value="${fangxing.fid }">
                </td>
                <td>${fangxing.fname }</td>
                <td>${fangxing.fimg}</td>
                <td>${fangxing.fdescribe}</td>
                <td>${fangxing.fprice}</td>
                <td>${fangxing.fcount}</td>
                <td>${fangxing.jid}</td>
                <td><a href="${pageContext.request.contextPath }/fangxing/updateFangxingByFid/${fangxing.fid}">修改</a>
                    <a href="${pageContext.request.contextPath }/fangxing/deleteFangxingByFid/${fangxing.fid}">删除</a>
                </td>

            </tr>
        </c:forEach>

    </table>
</form>
</body>

</html>